/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.snda.lidejia.xml2pojo.util;

import org.dom4j.Node;

/**
 *
 * @author lidejia
 */
public class ParserArgumentChecker {

    public static void checkSingle(Node... elements) {
        if (!(elements != null && elements.length == 1 && elements[0] != null)) {
            throw new IllegalArgumentException();
        }
    }

    public static void checkNotNull(Node... elements) {
        if (elements == null) {
            throw new IllegalArgumentException();
        }
    }
}
